<?php
//error_reporting(E_STRICT);
//date_default_timezone_set('America/Toronto');
require_once('phpmailer5/class.phpmailer.php');

$mailer = new PHPMailer();
$mailer->IsSMTP(); // telling the class to use SMTP
//$mailer->Host = "";
$mailer->SMTPAuth = true; // enable SMTP authentication
$mailer->SMTPKeepAlive = true; // SMTP connection will not close after each email sent
$mailer->SMTPSecure = "ssl"; // sets the prefix to the servier
$mailer->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mailer->Port = 465;
$mailer->Mailer = "smtp";
//error_reporting(E_ALL);
$mailer->Username = "sarah.johns2001@gmail.com"; // SMTP account username
$mailer->Password = "xdbs@123"; // SMTP account password
?>